<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditPoireviewTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditPoireviewLabel_id}" for="id" />
                    <h:inputText id="id" value="#{poireviewController.selected.id}" title="#{bundle.EditPoireviewTitle_id}" required="true" requiredMessage="#{bundle.EditPoireviewRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditPoireviewLabel_poiId}" for="poiId" />
                    <h:inputText id="poiId" value="#{poireviewController.selected.poiId}" title="#{bundle.EditPoireviewTitle_poiId}" />
                    <h:outputLabel value="#{bundle.EditPoireviewLabel_author}" for="author" />
                    <h:inputText id="author" value="#{poireviewController.selected.author}" title="#{bundle.EditPoireviewTitle_author}" />
                    <h:outputLabel value="#{bundle.EditPoireviewLabel_review}" for="review" />
                    <h:inputText id="review" value="#{poireviewController.selected.review}" title="#{bundle.EditPoireviewTitle_review}" />
                    <h:outputLabel value="#{bundle.EditPoireviewLabel_date}" for="date" />
                    <h:inputText id="date" value="#{poireviewController.selected.date}" title="#{bundle.EditPoireviewTitle_date}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <h:commandLink action="#{poireviewController.update}" value="#{bundle.EditPoireviewSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditPoireviewViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{poireviewController.prepareList}" value="#{bundle.EditPoireviewShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditPoireviewIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
